package com.yx.fx.sys.web.model.save;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * @author 杨智杰
 * @since 2021/8/25 10:55
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "用户注册")
public class RegisterUser {

    @NotBlank
    @Length(max = 32)
    @ApiModelProperty(value = "用户名", required = true)
    private String userName;

    @NotBlank
    @Length(max = 32)
    @ApiModelProperty(value = "登录账号", required = true)
    private String loginName;

    @NotBlank
    @Length(min = 32, max = 32)
    @ApiModelProperty(value = "登陆密码", required = true)
    private String password;

    @Length(max = 32)
    @ApiModelProperty(value = "手机号")
    private String phone;

    @Email
    @Length(max = 64)
    @ApiModelProperty(value = "邮箱")
    private String email;

}
